package com.tzs.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 数据导出实体类
 *
 * @author Tanzs
 * @Date 2019/11/29
 */
@Data
public class UserExport {
    private Integer id;

    private String phone;

    private String username;

    private String gender;

    public void setGender(String gender) {
        if (gender.equals("woman")){
            this.gender="女";
        }else if(gender.equals("male")){
            this.gender="男";
        }
    }

    private String birthday;

    private String email;

    private String recentlylanded;

    private String avatarimgurl;

    private String rname;

    public void setRname(String rname) {
        if (rname.equals("ROLE_USER")){
            this.rname="普通用户";
        }else if(rname.equals("ROLE_ADMIN")){
            this.rname="管理员";
        }else if(rname.equals("ROLE_SUPERADMIN")){
            this.rname="超级管理员";
        }
    }
}